/**
 * Created by kenz on 2017/6/14.
 */
const ua = navigator.userAgent.toLowerCase();//获取判断用的对象
//如果是微信页面登录
let device_type = 5
if(ua.match(/MicroMessenger/i) == "micromessenger") {
  device_type = 4
}
const configs = {
  host: 'https://v5.tuniaoapp.com',
  //host: 'https://dev.tuniaoapp.com',
  wechatHost: 'http://driver.tuniaoapp.com',
  version: '5.0.7',
  client_type: 1, // 1运力 ， 2货主
  device_type, //设备类型1:安卓2:苹果,PC3 微信4 手机浏览器（手机QQ）传5
  sendCodeTimer: 120,
  addressLength: 5,
  publicTel: 4008352166,
  loginErrMsg: '请重新登录',
  errMsg: '请检查网络链接',
  errWechatMsg: '微信链接失败',
  bankConfig: {
    bank1: {
      icon: 'icon-bank1',
      label: '支付宝',
      color: '#22a4ff'
    },
    bank2: {
      icon: 'icon-bank2',
      label: '中国工商银行',
      color: '#d81e06'
    },
    bank3: {
      icon: 'icon-bank3',
      label: '中国建设银行',
      color: '#003b8f'
    },
    bank4: {
      icon: 'icon-bank4',
      label: '中国农业银行',
      color: '#319585'
    },
    bank5: {
      icon: 'icon-bank5',
      label: '中国银行',
      color: '#b81c22'
    },
    bank6: {
      icon: 'icon-bank6',
      label: '中国招商银行',
      color: '#e50012'
    },
    bank7: {
      icon: 'icon-bank7',
      label: '交通银行',
      color: '#1d1f86'
    },
    bank8: {
      icon: 'icon-bank8',
      label: '兴业银行',
      color: '#003f8d'
    },
    bank9: {
      icon: 'icon-bank9',
      label: '浦发银行',
      color: '#2d5082'
    },
    bank10: {
      icon: 'icon-bank10',
      label: '华夏银行',
      color: '#ed1c24'
    },
    bank11: {
      icon: 'icon-bank11',
      label: '中国光大银行',
      color: '#6a1684'
    },
    bank12: {
      icon: 'icon-bank12',
      label: '中国民生银行',
      color: '#59a472'
    },
    bank13: {
      icon: 'icon-bank13',
      label: '广东发展银行',
      color: '#bc0015'
    },
    bank14: {
      icon: 'icon-bank14',
      label: '中国邮政储蓄',
      color: '#067f40'
    },
    bank15: {
      icon: 'icon-bank15',
      label: '中国平安银行',
      color: '#ff3204'
    },
    bank0: {
      icon: 'icon-bank0',
      label: '其他银行',
      color: '#b81c22'
    }
  }
}

export default configs
